
package com.gitee.flow.entity;


import jakarta.json.bind.annotation.JsonbTransient;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import java.io.Serializable;


/**
 * flow 表 .
 *
 * @author <a href="mailto:service@crenjoy.com">crenjoy</a>
 */
@Entity
@Table(name = "ACT_RU_IDENTITYLINK")
public class RuIdentitylinkEntity implements Serializable {

  private static final long serialVersionUID = 1L;



  /** ID_. */
  private String id;
  /** REV_. */
  private Integer rev;
  /** GROUP_ID_. */
  private String groupId;
  /** TYPE_. */
  private String type;
  /** USER_ID_. */
  private String userId;
  /** TASK_ID_. */
  private String taskId;
  /** PROC_INST_ID_. */
  private String procInstId;
  /** PROC_DEF_ID_. */
  private String procDefId;
  /** SCOPE_ID_. */
  private String scopeId;
  /** SUB_SCOPE_ID_. */
  private String subScopeId;
  /** SCOPE_TYPE_. */
  private String scopeType;
  /** SCOPE_DEFINITION_ID_. */
  private String scopeDefinitionId;

  /**
   * 默认构造函数.
   */
  public RuIdentitylinkEntity() {
    super();
  }

  /** 实体主键. */
  @Transient
  @JsonbTransient
  public String getEntityPk() {
    return this.id;
  }

  /** 实体主键. */
  public void setEntityPk(String pk) {
    this.id = pk;
  }

  /** ID_(Id). */
  @Id

  @Column(name = "id_", nullable = false)
  public String getId() {
    return id;
  }

  /** ID_(Id). */
  public void setId(String id) {
    this.id = id;
  }

  /** REV_(Rev). */
  @Column(name = "rev_")
  public Integer getRev() {
    return rev;
  }

  /** REV_(Rev). */
  public void setRev(Integer rev) {
    this.rev = rev;
  }

  /** GROUP_ID_(GroupId). */
  @Column(name = "group_id_")
  public String getGroupId() {
    return groupId;
  }

  /** GROUP_ID_(GroupId). */
  public void setGroupId(String groupId) {
    this.groupId = groupId;
  }

  /** TYPE_(Type). */
  @Column(name = "type_")
  public String getType() {
    return type;
  }

  /** TYPE_(Type). */
  public void setType(String type) {
    this.type = type;
  }

  /** USER_ID_(UserId). */
  @Column(name = "user_id_")
  public String getUserId() {
    return userId;
  }

  /** USER_ID_(UserId). */
  public void setUserId(String userId) {
    this.userId = userId;
  }

  /** TASK_ID_(TaskId). */
  @Column(name = "task_id_")
  public String getTaskId() {
    return taskId;
  }

  /** TASK_ID_(TaskId). */
  public void setTaskId(String taskId) {
    this.taskId = taskId;
  }

  /** PROC_INST_ID_(ProcInstId). */
  @Column(name = "proc_inst_id_")
  public String getProcInstId() {
    return procInstId;
  }

  /** PROC_INST_ID_(ProcInstId). */
  public void setProcInstId(String procInstId) {
    this.procInstId = procInstId;
  }

  /** PROC_DEF_ID_(ProcDefId). */
  @Column(name = "proc_def_id_")
  public String getProcDefId() {
    return procDefId;
  }

  /** PROC_DEF_ID_(ProcDefId). */
  public void setProcDefId(String procDefId) {
    this.procDefId = procDefId;
  }

  /** SCOPE_ID_(ScopeId). */
  @Column(name = "scope_id_")
  public String getScopeId() {
    return scopeId;
  }

  /** SCOPE_ID_(ScopeId). */
  public void setScopeId(String scopeId) {
    this.scopeId = scopeId;
  }

  /** SUB_SCOPE_ID_(SubScopeId). */
  @Column(name = "sub_scope_id_")
  public String getSubScopeId() {
    return subScopeId;
  }

  /** SUB_SCOPE_ID_(SubScopeId). */
  public void setSubScopeId(String subScopeId) {
    this.subScopeId = subScopeId;
  }

  /** SCOPE_TYPE_(ScopeType). */
  @Column(name = "scope_type_")
  public String getScopeType() {
    return scopeType;
  }

  /** SCOPE_TYPE_(ScopeType). */
  public void setScopeType(String scopeType) {
    this.scopeType = scopeType;
  }

  /** SCOPE_DEFINITION_ID_(ScopeDefinitionId). */
  @Column(name = "scope_definition_id_")
  public String getScopeDefinitionId() {
    return scopeDefinitionId;
  }

  /** SCOPE_DEFINITION_ID_(ScopeDefinitionId). */
  public void setScopeDefinitionId(String scopeDefinitionId) {
    this.scopeDefinitionId = scopeDefinitionId;
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((id == null) ? 0 : id.hashCode());
    return result;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final RuIdentitylinkEntity other = (RuIdentitylinkEntity) obj;
    if (id == null) {
      if (other.id != null) {
        return false;
      }
    } else if (!id.equals(other.id)) {
      return false;
    }
    return true;
  }



}
